package com.weixing.mall.provider.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.weixing.mall.provider.model.domain.OrderBinding;

/**
 * <p>
 * 订单码绑定 服务类
 * </p>
 *
 * @author Small
 * @since 2020-04-25
 */
public interface IOrderBindingService extends IService<OrderBinding> {

    /**
     * 查询绑定订单编号
     */
    String findOrderSnByCommodityCode(String commodityCode);

    /**
     * 解除绑定
     */
    void  cancelBindingByOrderIdOrCommodityCode(String commodityCode,Long orderId);

    /**
     * 根据订单ID查询绑定商品码
     */
    String findCommodityCodeByOrderId(Long orderId);

    OrderBinding findByOrderIdAndCode(Long orderId);

     void handlerUnbind(Long orderId,Long uid);
}
